﻿

using System;
using System.Runtime.Serialization;
using XStudio.Core.Data;

namespace Core.Manage.User
{
    /// <summary>
    /// 地址表实体
    /// </summary>
    [DataContract]
    [Table("QM_AddressTB")]
    public partial class AddressEntity : EntityObject
    {
        #region 内部变量

        private int _AddressID;
        private int _FamerID;
        private string _Address;
        private bool _IsDefaultAddress;
        private DateTime _CreateDateTime;
        private DateTime _UpdateDateTime;

        #endregion

        //属性

        #region AddressID
        /// <summary>
        /// AddressID
        /// </summary>
        [DataMember]
        [Column(IsUnique = true, IsPrimaryKey = true, Name = "AddressID", IsNull = false)]
        public int UID
        {
            get { return _AddressID; }
            set
            {
                _AddressID = value;
                ReportPropertyChanged("UID");
            }
        }
        #endregion

        #region FamerID
        /// <summary>
        /// FamerID
        /// </summary>
        [DataMember]
        [Column(Name = "FamerID", IsNull = false)]
        public int FamerID
        {
            get { return _FamerID; }
            set
            {
                _FamerID = value;
                ReportPropertyChanged("FamerID");
            }
        }
        #endregion

        #region Address
        /// <summary>
        /// Address
        /// </summary>
        [DataMember]
        [Column(Name = "Address", IsNull = false)]
        public string Address
        {
            get { return _Address; }
            set
            {
                _Address = value;
                ReportPropertyChanged("Address");
            }
        }
        #endregion

        #region IsDefaultAddress
        /// <summary>
        /// IsDefaultAddress
        /// </summary>
        [DataMember]
        [Column(Name = "IsDefaultAddress", IsNull = false)]
        public bool IsDefaultAddress
        {
            get { return _IsDefaultAddress; }
            set
            {
                _IsDefaultAddress = value;
                ReportPropertyChanged("IsDefaultAddress");
            }
        }
        #endregion

        #region CreateDateTime
        /// <summary>
        /// CreateDateTime
        /// </summary>
        [DataMember]
        [Column(Name = "CreateDateTime", IsNull = false)]
        public DateTime CreateDateTime
        {
            get { return _CreateDateTime; }
            set
            {
                _CreateDateTime = value;
                ReportPropertyChanged("CreateDateTime");
            }
        }
        #endregion

        #region UpdateDateTime
        /// <summary>
        /// UpdateDateTime
        /// </summary>
        [DataMember]
        [Column(Name = "UpdateDateTime", IsNull = false)]
        public DateTime UpdateDateTime
        {
            get { return _UpdateDateTime; }
            set
            {
                _UpdateDateTime = value;
                ReportPropertyChanged("UpdateDateTime");
            }
        }
        #endregion

    }
}
